<?php
defined('IN_PHPCMS') or exit('No permission resources.');
pc_base::load_sys_class('model', '', 0);
class goods_order_model extends model {
	public function __construct() {
		$this->db_config = pc_base::load_config('database');
		$this->db_setting = 'default';
		$this->table_name = 'goods_order';
		parent::__construct();
	}

    /**
     * 创建订单
     * @param $data
     * @return array
     */
    public function create($data)
    {
        if (empty($data) || !is_array($data)) {
            return false;
        }
        $data['created_at'] = date('Y-m-d H:i:s',time());
        return $this->insert($data, true);
    }
}
?>